﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _008_观察者模式
{
    class Program
    {
        static void Main(string[] args)
        {
            Cat cat = new Cat("Tom","蓝色");
            Mouse m1 = new Mouse("Jerry","黄色",cat);
            Mouse m2 = new Mouse("Jack", "绿色",cat);
            //猫的状态发生改变， 
            cat.CatComing();
            Console.ReadKey();
        }
    }
}
